package com.ooono.factorytest.items;

import android.os.Bundle;
import android.widget.Button;

import androidx.annotation.Nullable;

import com.ooono.factorytest.R;
import com.ooono.factorytest.base.BaseActivity;

import mcs8.mdm.PolicyManager;

public class FactoryResetActivity extends BaseActivity {

    public static final String KEY = "reset";

    @Override
    public int getTestTitle() {
        return R.string.test_item_factory_reset;
    }

    @Override
    public String getTestKey() {
        return KEY;
    }

    @Override
    public int getContentLayout() {
        return R.layout.content_factory_reset;
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    @Override
    protected void onResume() {
        super.onResume();

    }

    @Override
    public void initViews() {
        Button factoryResetBtn = findViewById(R.id.btn_factory_reset);
        factoryResetBtn.setOnClickListener(v -> PolicyManager.wipeDeviceData());
    }

}
